awilliam@xenbuild.aw [Tue, 24 Oct 2006 16:08:30 +0000 (10:08 -0600)]
[IA64] xenctx shows more registers for ia64
This patch adds more user registers to show them to xenctx for ia64.
Tested domU/domVTi on ia64.
Sample is the below.
# ./xenctx 1 0
iip:
e000000000000810
ipsr:
00001012087a6010 b0:
a000000100068a70
b6:
a00000010014ff60 b7:
e000000000000800
cr_ifs:
800000000000050a ar_unat:
0000000000000000
ar_pfs:
8000000000000209 ar_rsc:
0000000000000008
ar_rnat:
0000000000000000 ar_bspstore:
a000000100c19030
ar_fpsr:
0009804c8a70433f event_callback_ip:
a000000100067a20
pr:
000000000005aa85 loadrs:
0000000000780000
iva:
a000000100008000 dcr:
0000000000007e04
r1:
a0000001010369a0
r2:
0000000000001000 r3:
8000000000000209
r4:
0000000000000000 r5:
0000000000000000
r6:
0000000000000000 r7:
0000000000000000
r8:
a000000100068a70 r9:
0000000000000100
r10:
0000000000000000 r11:
0000000000050ac5
sp:
a000000100c1fd80 tp:
a000000100c18000
r14:
0000000000000001 r15:
0000000000000000
r16:
fffffffffff04c18 r17:
a000000100c1fdb0
r18:
a000000100c1fdb1 r19:
a000000100c1fe90
r20:
a000000100c1fe10 r21:
0000000000000000
r22:
0000000000000001 r23:
0000000000000000
r24:
a000000100e5a448 r25:
a000000100c18f10
r26:
ffffffffffff0030 r27:
0000000000000000
r28:
000000000000001d r29:
0000000000000000
r30:
0000000000000000 r31:
0000000000000000
itr: P rid va pa ps ed pl ar a d ma key
[0] 1 000005
a000000100000000 0000004000000 1a 64M 1 2 3 1 1 0 WB 000000
[1] 1 000007
e000000000000000 0000000000000 18 16M 1 2 3 1 1 0 WB 000000
[2] 0 000000
0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[3] 0 000000
0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[4] 0 000000
0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[5] 0 000000
0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[6] 0 000000
0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[7] 0 000000
0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
dtr: P rid va pa ps ed pl ar a d ma key
[0] 1 000005
a000000100000000 0000004000000 1a 64M 1 2 3 1 1 0 WB 000000
[1] 1 000007
ffffffffffff0000 0000000010000 10 64K 1 2 3 1 1 0 WB 000000
[2] 1 000007
e000000000000000 0000000000000 18 16M 1 2 3 1 1 0 WB 000000
[3] 0 000000
0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[4] 0 000000
0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[5] 0 000000
0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[6] 0 000000
0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[7] 0 000000
0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
awilliam@xenbuild.aw [Tue, 24 Oct 2006 15:49:31 +0000 (09:49 -0600)]
[IA64] Support multiple page sizes in VHPT
Enable VHPT support for multiple page sizes.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Tue, 24 Oct 2006 15:22:56 +0000 (09:22 -0600)]
[IA64] Move console_start_sync() in INIT path
This patch moves console_start_sync() before first message in
ia64_init_handler(), and it cleans up ia64_init_handler().
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
awilliam@xenbuild.aw [Sun, 22 Oct 2006 21:23:52 +0000 (15:23 -0600)]
merge with xen-unstable.hg
awilliam@xenbuild.aw [Sun, 22 Oct 2006 20:39:15 +0000 (14:39 -0600)]
[IA64] Fix Windows Timer stop issue.
When doing HCT testing on Guest Windows, Windows Timer might stop,
if there is no mouse activity.
When implementing vhpi acceleration, I didn't think of below situation.
windows uses "epc" instruction to implement system call like linux,
In a very small code sequence including "epc" instruction, if there is
an external interrupt, Windows will defer handling this external interrupt
by rfi with ipsr.i=0.
Signed-off-by, Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Sun, 22 Oct 2006 20:14:58 +0000 (14:14 -0600)]
[IA64] remove unused vmx/mm.c file
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Sun, 22 Oct 2006 20:12:30 +0000 (14:12 -0600)]
[IA64] BUG() bad path during domain destruction
BUG out on badness due to SMP problems accessing the p2m table. This
is temporary until we have a real fix. To avoid this, do not use the
RX copy option (xennet.rx_copy).
Based on patch by: Tsunehisa Doi
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Sun, 22 Oct 2006 19:57:29 +0000 (13:57 -0600)]
[IA64] sync_console in ia64_init_handler
This patch fix the following issue.
1. boot xen
2. push INIT bottun
3. Nothing is printed to serial console.
I add console_start_sync() into ia64_init_handler().
Then this issue is fixed.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kaf24@localhost.localdomain [Sun, 22 Oct 2006 16:38:59 +0000 (17:38 +0100)]
Free correct number of maptack pages during domain destruction.
Signed-off-by: Christopher Clark <christopher.clark@cl.cam.ac.uk>
kaf24@localhost.localdomain [Sun, 22 Oct 2006 16:36:28 +0000 (17:36 +0100)]
Use $CC when building pygrub.
Signed-off-by: John Levon <john.levon@sun.com>
kaf24@localhost.localdomain [Sun, 22 Oct 2006 16:34:24 +0000 (17:34 +0100)]
[HVM] Replace hvm_prod_vcpu() with calls to generic (and correct) vcpu_kick().
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Fri, 20 Oct 2006 16:52:32 +0000 (17:52 +0100)]
[HVM] Don't compare CR3 pfn to domain->max_pages
max_pages is the largest number of pages the domain can have
allocated, not the gpfn of the highest one.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Fri, 20 Oct 2006 15:06:53 +0000 (16:06 +0100)]
[XEN] Stricter TLB-flush discipline when unshadowing pagetables
It's OK for the guest to see old entries in the TLB, but not for the
shadow fault handler to see them in its linear mappings.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Fri, 20 Oct 2006 15:01:49 +0000 (16:01 +0100)]
[XEN] Show shadow status of vcpus in domain info dump
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Steven Hand [Fri, 20 Oct 2006 10:49:00 +0000 (11:49 +0100)]
Omit seg fixup warning if it's just from statically linked init.
Signed-off-by: Steven Hand <steven@xensource.com>
Steven Hand [Fri, 20 Oct 2006 10:43:14 +0000 (11:43 +0100)]
Workaround for bigsmp APIC mode SMP linux guests - we cannot correctly deal
with timer interrupts being delivered to VCPUs other than 0, so spit a
warning and then subsequently ignore the target. This fixes the recent
issues Intel reported when booting SMP FC5 and FC6 kernels.
Needs a better fix at some point.
Signed-off-by: Steven Hand <steven@xensource.com>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 10:00:08 +0000 (11:00 +0100)]
[XEND] Remove lazy import of signal module.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 09:58:15 +0000 (10:58 +0100)]
Allow default target architecture of PV-on-HVM drivers to be overridden.
Signed-off-by: Travis Betak <travis.betak@amd.com>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 09:48:34 +0000 (10:48 +0100)]
[ACM] Documentation cleanup.
This patch eliminates redundant security tools information that was
integrated into the Xen user guide and the xm man page.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 09:46:37 +0000 (10:46 +0100)]
[NET] gso: Fix rcv mss estimate
I noticed that with default TCP window sizes TSO + Xen would slow to a
crawl on certain machines. It turned out that there is a bug in the
TCP stack when it comes to receiving LRO (counter part of TSO for rx)
packets.
The following fix has been applied upstream.
[TCP]: Fix rcv mss estimate for LRO
By passing a Linux-generated TSO packet straight back into
Linux, Xen
becomes our first LRO user :) Unfortunately, there is at least
one spot
in our stack that needs to be changed to cope with this.
The receive MSS estimate is computed from the raw packet
size. This is
broken if the packet is GSO/LRO. Fortunately the real MSS can
be found
in gso_size so we simply need to use that if it is non-zero.
Real LRO NICs should of course set the gso_size field in
future.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 09:34:24 +0000 (10:34 +0100)]
[HVM] Fix oprofile for HVM guests.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 09:11:45 +0000 (10:11 +0100)]
[HVM][SVM] Avoid double-execution of NMI handler.
Remove the do_nmi() call from the vmexit logic, as the NMI is held
pending and will be handled in the context of the host when the STGI
instruction is executed.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 09:10:36 +0000 (10:10 +0100)]
[HVM][SVM] Fix 2/2 to nterrupt delivery logic.
Add flag to indicate that an exception event needs injecting, and to
delay the ext interrupt injection.
Remove unnecessary check of RFLAGS.IF for ExtInt injection.
Signed-off-by: Travis Betak <travis.betak@amd.com>
Signed-off-by: Wei Huang <wei.huang2@amd.com>
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 09:09:55 +0000 (10:09 +0100)]
[HVM][SVM] Fix 1/2 to interrupt delivery logic.
This patch uses the VINTR intercept to signal the hypervisor when a
guest can take an interrupt. When guest's interrupts are masked by
EFLAGS.IF or the guests are in an interrupt shadow, we create a 'fake'
virtual interrupt to inject while also enabling the VINTR intercept.
When the guest _can_ take interrupts, the hypervisor will #VMEXIT
on VINTR. The VINTR exit handler then clears the VINTR intercept bit
and clears the V_IRQ bit so that svm_intr_assist() can inject a
legitimate interrupt.
Signed-off-by: Travis Betak <travis.betak@amd.com>
Signed-off-by: Wei Huang <wei.huang2@amd.com>
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 08:50:09 +0000 (09:50 +0100)]
[HVM] Implement password authentication of VNC connections.
The specification is as mentioned at
http://lists.xensource.com/archives/html/xen-devel/2006-09/msg00666.html
(However, password came to describe plain text)
The difference is follows.
- protocol_authtype() without the necessity was deleted.
- The check on the protocol version was added.
- And, some small modification.
Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 08:32:16 +0000 (09:32 +0100)]
Use the name of the title of the system to boot into (instead of the
kernel version) to determine where to make the entry into the grub
configuration file.
Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 08:30:23 +0000 (09:30 +0100)]
[HVM] Pass all non-RAM memory accesses to handle_mmio().
It is up to handle_mmio() to correctly handle accesses outside
valid device mmio regions.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 08:28:31 +0000 (09:28 +0100)]
[BLKTAP]: Fix potential grant entry leaks on error
As it stands grant entries for the actual data are mapped in bulk.
If one of the earlier entries fail to be mapped, it can cause all
subsequent entries to be leaked if they were successfully mapped.
This patch changes it so that we will continue to reap grant entries
even when an error is detected.
There is still a potential leak if create_lookup_pte_addr fails
in fast_flush_area. This leak is not affected by this patch.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 08:24:26 +0000 (09:24 +0100)]
[BLKTAP]: Kill bogus fast_flush_area
The function dispatch_rw_block_io may call fast_flush_area even before
a pending request has been initialised. This patch deletes that call.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 08:22:58 +0000 (09:22 +0100)]
[BLKTAP]: Kill duplicate fast_flush_area call
The dispatch_rw_block_io may call fast_flush_area twice if
create_lookup_pte_addr fails (there is a flush call at fail_flush
already). The second call simply causes warnings to be printed
on the console. This patch removes the duplicate call.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kaf24@firebug.cl.cam.ac.uk [Thu, 19 Oct 2006 21:05:07 +0000 (22:05 +0100)]
[VMXASSIST] Some reports that macros do not get picked up by CPP
if they are prefixed with $. Fix by placing macro uses in ().
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 16:01:51 +0000 (17:01 +0100)]
[SOLARIS] Don't use -nostdinc as it prevents getting stadrg.h
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 15:32:11 +0000 (16:32 +0100)]
[HVM] Windows HCT requires non-zero subvendor details in platform PCI device.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 14:53:12 +0000 (15:53 +0100)]
[XEND] Two small fixes/improvements from Glauber de Oliveira Costa.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 14:49:16 +0000 (15:49 +0100)]
[HVM][VMX] Use CPUID instruction virtualization to workaround VMXAssist 4G limit.
Address space access limit in VMXAssist is 4G, because IA-32 only has
4GB virtual address space which VMXassist can use to map physical
memory. The issue is, win2k3 server with more than 4G memory will put
AP GDT above 4G, so when AP changes its mode from real mode to PAE
paging mode, the long jump instrction it uses need access AP GDT
entries which resides above 4G, but because of this constraint, it can
not access GDT and so fails boot.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 14:15:36 +0000 (15:15 +0100)]
[ACM] An environment where ACM and its tools have not been installed before
will throw an error during 'make' of the test suite. This fixes the problem.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 14:14:25 +0000 (15:14 +0100)]
[ACM] Add missing alignment operations for the ACM module.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 14:13:09 +0000 (15:13 +0100)]
Don't use $(LINK.o), as it doesn't pick up -m32/-m64 from $(CFLAGS).
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 13:56:02 +0000 (14:56 +0100)]
[HVM] PCmark2005 running in WinXP needs following extension to mmio decoder.
Als fix some inconsistencies, the comments of mmio decoder use AT&T
ordering for operands, but the syntax looks like Intel asm. This leads
to much confusion.
Signed-off-by: Qing He <qing.he@intel.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 13:53:31 +0000 (14:53 +0100)]
[XENTRACE] Fix typo in set_cpu_mask op.
From: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 13:50:47 +0000 (14:50 +0100)]
[BLKTAP]: Copy shared data before verification
As it is blktap verifies the metadata from the frontend in place.
This means we run the risk of the frontend changing the data after
we've verified it. This patch copies the data onto the stack before
verifying and using it to ensure we see a consistent snapshot.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 13:38:34 +0000 (14:38 +0100)]
[XEN] Forcibly undefine swap{16,32,64} in mkelf32 program.
Signed-off-by: Keir Fraser <keir@xensource.com>
awilliam@xenbuild.aw [Thu, 19 Oct 2006 04:07:18 +0000 (22:07 -0600)]
[IA64] fix a bug in accelerating mov to rr
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Thu, 19 Oct 2006 04:07:06 +0000 (22:07 -0600)]
[IA64] Correctly not handle VHPT long format.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Thu, 19 Oct 2006 04:06:49 +0000 (22:06 -0600)]
[IA64] Remove unused code (vmx_uaccess).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Thu, 19 Oct 2006 04:06:38 +0000 (22:06 -0600)]
[IA64] merge pal emulator
Merge VTi pal emulator with Xen pal emulator.
Xen/ia64 now has only one pal and one sal emulator.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Thu, 19 Oct 2006 04:06:23 +0000 (22:06 -0600)]
[IA64] backport toolchain fixes from linux-ia64
This backports the ia64 specific parts of this upstream linux
changeset:
http://www.kernel.org/hg/linux-2.6/?cs=
dfbee33b0693
Change suggested by Akio Takebe.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Thu, 19 Oct 2006 04:06:18 +0000 (22:06 -0600)]
[IA64] add arch/ia64/kernel/Makefile to sparse tree
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 18:23:32 +0000 (19:23 +0100)]
[NET] front: Fix "rmmod xennet" crash in dom0.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 18:20:36 +0000 (19:20 +0100)]
[HVM] XenTrace enhancement for HVM SMP guests.
Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 18:14:34 +0000 (19:14 +0100)]
Replace test-gcc-flag with Linux-style cc-option.
Improve on Linux implementation by looking for any output
on stdout/stderr. This indicates badness.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 17:41:47 +0000 (18:41 +0100)]
[HVM] Enable DMA mode for CD-ROM IDE ATAPI interface.
Signed-off-by: Winston Wang <winston.l.wang@intel.com
kfraser@localhost.localdomain [Wed, 18 Oct 2006 17:37:18 +0000 (18:37 +0100)]
[TPM] Check the existence of the xenstore path before trying to read from it.
This prevents an error from being logged. Use the wrapped command for
reading from the xenstore instead of the native one.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 17:35:21 +0000 (18:35 +0100)]
[HVM] Move RTC emulation into the hypervisor.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 17:13:57 +0000 (18:13 +0100)]
[SOLARIS] More tools fixes.
Many of the tools use C99 features such as bool, or expect certain functions.
Fix the CFLAGS to enable these on Solaris.
Also make sure the correct $CC is passed to Python.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:59:04 +0000 (17:59 +0100)]
[NET] front/back: Avoid unaligned accesses to IP datagrams. These
cause noisy warnings on IA64.
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:54:58 +0000 (17:54 +0100)]
[ACM] Fix the resource representations in the resource_label
file. Without this patch, multiple representations of the same
resource can co-exist in the resource label file and lead to errors
during operation.
Ensures that all resource file names are stored with absolute
path name and are unique. Setting labels of phy-resources, relative
paths will automatically be pre-pended with '/dev/'; labeling
file-resources with relative paths will raise an error.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:54:06 +0000 (17:54 +0100)]
[ACM] Add access control module information for hypercalls and
xenstore entries to the interface manual.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:45:19 +0000 (17:45 +0100)]
[XEN] Clamp dom0 memory and CPUs to fit in available resources.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:41:36 +0000 (17:41 +0100)]
[LINUX] Eliminate microcode driver's dependency on sys_m{,un}lock as
well as the needless use of static variables.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:39:52 +0000 (17:39 +0100)]
[HVM] E820 table misreports the ACPI NVS/Data information which
triggers a complaint from Windows HCT.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Winston Wang <winston.l.wang@intel.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:29:08 +0000 (17:29 +0100)]
[ACM] Fix binary alignment in tools.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:24:36 +0000 (17:24 +0100)]
[ACM] Makes acm_setup arch-independant.
Move module extraction code to x86/setup.c
Be sure the dump binary file is aligned.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:17:15 +0000 (17:17 +0100)]
[ACM] Keep stream aligned.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:08:09 +0000 (17:08 +0100)]
[OpenBSD] Various changes to get Xen building on OpenBSD.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 15:56:27 +0000 (16:56 +0100)]
Clean up linker flag definitions.
1. GNU ld does not understand -m{32,64}. It must be cooked for it by
the GCC driver program.
2. Where GNU ld is directly called we must use -melf_{i386,x86_64}.
3. We cannot avoid calling GNU ld directly in some cases (e.g., when
specifying GNU-specific linker scripts) as on some host
architectures the GCC driver is configured to call the host
linker.
4. We cannot add -melf_{i386,x86_64} to LDFLAGS as the option is
not recognised by GCC.
Hence we define new LDFLAGS_DIRECT, to be added to the command line
only when invoking GNU ld directly.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 15:08:58 +0000 (16:08 +0100)]
[TPM] Allow all tests of the xm test suite to be run when ACM
security is turned on in hypervisor. This is done by implicitly
labeling VMs and resources if they have not been labeled through
explicit calls.
To allow the xm tests suite to label resources automatically, run
./configure --enable-full-labeling
once. To turn it off, the '--enable-full-labeling' parameter should be
omitted.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 15:07:55 +0000 (16:07 +0100)]
[TPM] Add tests cases for the ACM security hooks and tools to
the xm test suite. The tests can be run with ACM turned off (not
compiled into Xen; see user doc for this), but most of them will be
skipped then. They can be run with a command like
make -C tests/security-acm check-TESTS
from the xm-test directory. They are also part of the default tests in
the tests suite and part of a new group test 'security'.
Since some of the tests require resources to be labeled, one must
explicitly enable the resources to be allowed to be labeled by the
test
suite by running
./configure --enable-full-labeling
once. To turn it off, the '--enable-full-labeling' parameter should be
omitted.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 14:26:08 +0000 (15:26 +0100)]
Fix 'chk' scripts for generic shell (non-bash) and *BSD.
From: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 14:16:37 +0000 (15:16 +0100)]
[TPM] Fix the tpm frontend to properly shut down when the domain
is shutting down (call to xenbus_frontend_closed()). Also the driver
now waits longer until an outstanding response has been received (to
support a busy system). Moves the 'Unknown' state with the other
states that are not used by the TPM frontend.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 14:13:41 +0000 (15:13 +0100)]
[HVM] MMIO/PIO fixes and cleanups.
1. Fix MMIO/PIO cross page boundary copy for MOVS and OUTS/INS
handling.
2. Clean up send_mmio_req/send_pio_req interface.
3. Clean up handle_mmio.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 13:46:48 +0000 (14:46 +0100)]
[XEN] Can be built -std=gnu99 (except for .S files).
Need to be careful with static initialisers:
1. *_LOCK_UNLOCKED, CPU_MASK_* no longer include a cast
2. Dynamic uses of the above are replaced by
appropriate function invocations.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Wed, 18 Oct 2006 13:36:20 +0000 (14:36 +0100)]
Merge
Tim Deegan [Wed, 18 Oct 2006 13:34:31 +0000 (14:34 +0100)]
[XEN] Fix CR3 plumbing for shadowed PV PAE guests.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 12:43:35 +0000 (13:43 +0100)]
Avoid need for GREP variable by avoiding GNUisms. The
only one we appear to have is use of '-q'. Replace it
with redirection to /dev/null.
Also avoid use of 'tail' by replacing with 'head' or
'grep' as appropriate.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 10:38:59 +0000 (11:38 +0100)]
xc core structures are not Linux specific.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 10:37:45 +0000 (11:37 +0100)]
Use new 'hg parents --template' support instead of awk scraping.
Also avoid use of non-portable 'whoami'. Use the USER env var instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
awilliam@xenbuild.aw [Tue, 17 Oct 2006 21:49:05 +0000 (15:49 -0600)]
[IA64] code cleanups
A few more code cleanups
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Tue, 17 Oct 2006 21:43:41 +0000 (15:43 -0600)]
[IA64] deopfuscate vcpu.c and priop.c and related headers
De-opfuscate vcpu.c, priovop.c and related header files to make them
easier to debug and read. In addition eliminate bogus UINT64 and UINT
data types which only exist in the ia64 tree and are totally
unnecessary as we have u64 already.
Signed-off-by: Jes Sorensen <jes@sgi.com>
awilliam@xenbuild.aw [Tue, 17 Oct 2006 20:30:36 +0000 (14:30 -0600)]
[IA64] Add not-SMP-safe comment about PV-on-HVM
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
awilliam@xenbuild.aw [Tue, 17 Oct 2006 20:29:33 +0000 (14:29 -0600)]
[IA64] warning fix for HVM PV driver
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
awilliam@xenbuild.aw [Tue, 17 Oct 2006 20:25:25 +0000 (14:25 -0600)]
[IA64] Fix panic when destroying DomVTI
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Tue, 17 Oct 2006 20:22:08 +0000 (14:22 -0600)]
[IA64] micro optimize __domain_flush_vtlb_track_entry.
try to use local purge instead of global purge when possible.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Tue, 17 Oct 2006 20:16:19 +0000 (14:16 -0600)]
[IA64] tlbflush_clock
This patch introduces xen compile time option, xen_ia64_tlbflush_clock=y.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 18:04:46 +0000 (19:04 +0100)]
[SOLARIS] Provide non-gcc-specific defn. of RING_HAS_UNCONSUMED_REQUESTS.
From: Mark Johnson <mark.johnson@sun.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 18:03:47 +0000 (19:03 +0100)]
[NET] back: Remove unused variable declaration.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:52:17 +0000 (18:52 +0100)]
[SOLARIS] Xen daemons are managed separately, so we need a way to start
just xend, and we need to disable xend's self-restarter.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:50:08 +0000 (18:50 +0100)]
Define REX64_PREFIX to account for assembler syntax differences on SVR4 targets.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:45:18 +0000 (18:45 +0100)]
Add a XEN_VENDORVERSION variable to allow additional text on top of
the extra version.
Signed-off-by: John Levon <john.levon@sun.com>
awilliam@xenbuild.aw [Tue, 17 Oct 2006 17:41:03 +0000 (11:41 -0600)]
[IA64] Remove dom0_align which isn't used anymore.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:36:26 +0000 (18:36 +0100)]
It's not correct to call endwin() if initscr() fails, and it crashes
older libcurses implementations.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:35:13 +0000 (18:35 +0100)]
Fix multiple inclusion when building libxenguest.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:28:27 +0000 (18:28 +0100)]
[SOLARIS] The hotplug scripts live in a different place on Solaris.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:23:24 +0000 (18:23 +0100)]
[SOLARIS] Add the correct machine name for Solaris to arch.py.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:22:19 +0000 (18:22 +0100)]
Allow CONFIG_IOEMU=n to work.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:21:25 +0000 (18:21 +0100)]
[SOLARIS] Create kernel-interface implementations for libxc and xenstored.
Additionally, on Solaris, tell the kernel when xenstored is running.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:17:19 +0000 (18:17 +0100)]
[SOLARIS] Disable "chk" script. The tests aren't portable and there's little need for it.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:15:59 +0000 (18:15 +0100)]
[SOLARIS] A couple of simple compile fixes for tools/ on Solaris.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:05:42 +0000 (18:05 +0100)]
Remove ERR() macro from libxc. Use ERROR/PERROR as appropriate.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:00:51 +0000 (18:00 +0100)]
Remove non-existent xc_ptrace_core() from xenctrl.h.
Signed-off-by: Keir Fraser <keir@xensource.com>